# Copyright (C) 2011 Michael Zhang <zhangfuxi@gmail.com>
#  
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without 
# modifications, as long as this notice is preserved.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

AC_INIT([ExprTest],
        [0.0.1],
        [Michael Zhang zhangfuxi@gmail.com],
        [ExprTest])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR([m4])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([dist-bzip2])

# Libtool shared library interface versions (current:revision:age)
# Update this value for every release!  (A:B:C will map to foo.so.(A-C).C.B)
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
#m4_define(libifd_ltversion, [0:1:0])

AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
#AC_PROG_RANLIB
AC_PROG_LIBTOOL

LT_PREREQ([2.2])
LT_INIT([dlopen])
AC_SUBST([LIBTOOL_DEPS])

PKG_CHECK_MODULES([OPENSC], [libopensc])

AC_CONFIG_FILES([
   Makefile
   README
   doc/Makefile
   m4/Makefile
   src/Makefile
   src/tclpkg/Makefile
   src/dat/Makefile
   src/tclpkg/ifd/Makefile
])

AC_OUTPUT
